<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
    <head>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
        <title></title>
        <script type='text/javascript'>

            var CTP_WEB_FULLPATH ='../';

        </script>
        <link href='../../css/jquery/ui.core.css' rel='stylesheet' type='text/css'/>
        <link href='../../css/jquery/ui.theme.css' rel='stylesheet' type='text/css'/>
        <link href='../../css/skins/standard/ctp-common.css' rel='stylesheet' type='text/css'/>
        <link href='../../css/panel.css' rel='stylesheet' type='text/css'/>
        <link href='../../css/ajaxtree.css' rel='stylesheet' type='text/css'/>
		<link href="../../css/button.css" rel="stylesheet" type="text/css"/>
        <script type='text/javascript' src='../../js/jquery/jquery.js'></script>
        <script type="text/javascript" src="../../js/jquery/jquery-migrate.js">
        </script>
        <script type='text/javascript' src='../../js/jqueryui/jquery-ui.js'></script>
        <script type='text/javascript' src='../../js/ctp/public/jsextend.js'></script>
		<script type='text/javascript' src='../../js/ctp/public/ctp.core.js'></script>
		<script type='text/javascript' src='../../js/ctp/public/ctp.base.js'></script>       
        <script type='text/javascript' src='../../js/ctp/public/ctp.ui.component.js'></script>
		<script type='text/javascript' src='../../js/ctp/panel/ctp.ui.panel.js'></script>
        <script type='text/javascript' src='../../js/ctp/ajaxtree/ctp.ui.ajaxtree.js'></script>
		<script type="text/javascript" src="../../js/ctp/button/ctp.ui.button.js"></script>
        
        <script type='text/javascript' kind='variant'>
			//ctp.core.log.lvl=ctp.core.loglvl.obj;
            var panel35;
            var ajaxtree1;
            
        </script>
        <script type='text/javascript' kind='event'>

        </script>
        <script type='text/javascript' kind='ui'>

            $(window).load(function(){
				
                ajaxtree1 = new ctp.ui.ajaxtree({
                    id: 'ajaxtree1',
                    rootUrl: '../../jsdemo/ajaxtree/root.js',
					targetAble:true,
					checkBox:'1',
					dragNode : false,
                    nodeImgUrlPrefix : '../../images/ajaxtree/'
                });

                ajaxtree1.createDom();
				
				var button9=new ctp.ui.button({
                    id: 'button9',
                    text: '给当前节点添加一个节点（右树）',
                    width: '100%',
                    onClick: function(){
						ajaxtree1.addNewNode("123","javascript:alert(1);",false);
                    }
                });
				var button1=new ctp.ui.button({
                    id: 'button1',
                    text: '删除当前节点',
                    width: '100%',
                    onClick: function(){
						ajaxtree1.delNode(ajaxtree1.getSettings().currentId);
                    }
                });
				var button2=new ctp.ui.button({
                    id: 'button2',
                    text: '刷新某节点',
                    width: '100%',
                    onClick: function(){
						ajaxtree1.refreshNode(ajaxtree1.getSettings().currentId,'../../jsdemo/ajaxtree/leaf.js');
                    }
                });
                panel35 = new ctp.ui.panel({
                    id: 'panel35',
                    title: '面板35',
                    items: [
                        ajaxtree1,button9,button1,button2
                    ],
                    renderTo: 'body'
                });

            });

        </script>
    </head>
    <body>

    </body>
</html>
